home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Date & Calendars / date-imgs.izs < prev    next >
Text File  |  2005-09-27  |  5KB  |  208 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Date Images 
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>This script works out the day of which month it is and then shows an apropriate image that it corresponds with.<!/DESCRIPTION> 
  7.  
  8. <!CATEGORY>calenders<!/CATEGORY>
  9.  
  10. <!SCRIPT>
  11. <!-- START OF SCRIPT -->
  12.  
  13. <!-- HOW TO INSTALL DATE IMAGES:
  14.  
  15.   1.  Copy the coding into the HEAD of your HTML document
  16.   2.  Add the last code into the BODY of your HTML document
  17.   3.  Download the images and then upload them to your server  -->
  18.  
  19. <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
  20.  
  21. <HEAD>
  22.  
  23. <SCRIPT LANGUAGE="JavaScript">
  24. <!-- Original:  Jeff Harding (jbh@site-ations.com) -->
  25. <!-- Web Site:  http://www.site-ations.com -->
  26.  
  27. <!-- Day images (c): http://www.site-ations.com -->
  28. <!-- Month images (c): http://www.bruce-hamilton.com -->
  29.  
  30.  
  31. <!-- Begin
  32. theDate= new Date();
  33. months = new Array();
  34. days = new Array();
  35. months[1] ="jan.gif";
  36. months[2] ="feb.gif";
  37. months[3] ="mar.gif";
  38. months[4] ="apr.gif";
  39. months[5] ="may.gif";
  40. months[6] ="jun.gif";
  41. months[7] ="jul.gif";
  42. months[8] ="aug.gif";
  43. months[9] ="sep.gif";
  44. months[10] ="oct.gif";
  45. months[11] ="nov.gif";
  46. months[12] ="dec.gif";
  47. days[1] ="1st.gif";
  48. days[2] ="2nd.gif";
  49. days[3] ="3rd.gif";
  50. days[4] ="4th.gif";
  51. days[5] ="5th.gif";
  52. days[6] ="6th.gif";
  53. days[7] ="7th.gif";
  54. days[8] ="8th.gif";
  55. days[9] ="9th.gif";
  56. days[10] ="10th.gif";
  57. days[11] ="11th.gif";
  58. days[12] ="12th.gif";
  59. days[13] ="13th.gif";
  60. days[14] ="14th.gif";
  61. days[15] ="15th.gif";
  62. days[16] ="16th.gif";
  63. days[17] ="17th.gif";
  64. days[18] ="18th.gif";
  65. days[19] ="18th.gif";
  66. days[20] ="20th.gif";
  67. days[21] ="21st.gif";
  68. days[22] ="22nd.gif";
  69. days[23] ="23rd.gif";
  70. days[24] ="24th.gif";
  71. days[25] ="25th.gif";
  72. days[26] ="26th.gif";
  73. days[27] ="27th.gif";
  74. days[28] ="28th.gif";
  75. days[29] ="29th.gif";
  76. days[30] ="30th.gif";
  77. days[31] ="31st.gif";
  78. function printDate() {
  79. document.write('<img src="' + months[theDate.getMonth()+1] + '">'); // month
  80. document.write('<br>');
  81. document.write('<img src="' + days[theDate.getDate()] + '">'); // day
  82. }
  83. //  End -->
  84. </script>
  85. </HEAD>
  86.  
  87. <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
  88.  
  89. <BODY>
  90.  
  91. <center>
  92.  
  93. <script>
  94. printDate();
  95. </script>
  96.  
  97. <p>
  98. <font face="arial, helvetica" size="-2">
  99. Day images   (c) <a href="http://www.site-ations.com">http://www.site-ations.com</a><br>
  100. Month images (c) <a href="http://www.bruce-hamilton.com">http://www.bruce-hamilton.com</a>
  101. </font>
  102.  
  103. </center>
  104.  
  105. <!-- END OF SCRIPT -->
  106. <!/SCRIPT>
  107.  
  108. <!PREVIEW>
  109. <!-- START OF SCRIPT -->
  110.  
  111.  
  112. <!-- HOW TO INSTALL DATE IMAGES:
  113.  
  114.   1.  Copy the coding into the HEAD of your HTML document
  115.   2.  Add the last code into the BODY of your HTML document
  116.   3.  Download the images and then upload them to your server  -->
  117.  
  118. <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
  119.  
  120. <HEAD>
  121.  
  122. <SCRIPT LANGUAGE="JavaScript">
  123. <!-- Original:  Jeff Harding (jbh@site-ations.com) -->
  124. <!-- Web Site:  http://www.site-ations.com -->
  125.  
  126. <!-- Day images (c): http://www.site-ations.com -->
  127. <!-- Month images (c): http://www.bruce-hamilton.com -->
  128.  
  129.  
  130. <!-- Begin
  131. theDate= new Date();
  132. months = new Array();
  133. days = new Array();
  134. months[1] ="jan.gif";
  135. months[2] ="feb.gif";
  136. months[3] ="mar.gif";
  137. months[4] ="apr.gif";
  138. months[5] ="may.gif";
  139. months[6] ="jun.gif";
  140. months[7] ="jul.gif";
  141. months[8] ="aug.gif";
  142. months[9] ="sep.gif";
  143. months[10] ="oct.gif";
  144. months[11] ="nov.gif";
  145. months[12] ="dec.gif";
  146. days[1] ="1st.gif";
  147. days[2] ="2nd.gif";
  148. days[3] ="3rd.gif";
  149. days[4] ="4th.gif";
  150. days[5] ="5th.gif";
  151. days[6] ="6th.gif";
  152. days[7] ="7th.gif";
  153. days[8] ="8th.gif";
  154. days[9] ="9th.gif";
  155. days[10] ="10th.gif";
  156. days[11] ="11th.gif";
  157. days[12] ="12th.gif";
  158. days[13] ="13th.gif";
  159. days[14] ="14th.gif";
  160. days[15] ="15th.gif";
  161. days[16] ="16th.gif";
  162. days[17] ="17th.gif";
  163. days[18] ="18th.gif";
  164. days[19] ="18th.gif";
  165. days[20] ="20th.gif";
  166. days[21] ="21st.gif";
  167. days[22] ="22nd.gif";
  168. days[23] ="23rd.gif";
  169. days[24] ="24th.gif";
  170. days[25] ="25th.gif";
  171. days[26] ="26th.gif";
  172. days[27] ="27th.gif";
  173. days[28] ="28th.gif";
  174. days[29] ="29th.gif";
  175. days[30] ="30th.gif";
  176. days[31] ="31st.gif";
  177. function printDate() {
  178. document.write('<img src="' + months[theDate.getMonth()+1] + '">'); // month
  179. document.write('<br>');
  180. document.write('<img src="' + days[theDate.getDate()] + '">'); // day
  181. }
  182. //  End -->
  183. </script>
  184. </HEAD>
  185.  
  186. <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
  187.  
  188. <BODY>
  189.  
  190. <center>
  191.  
  192. <script>
  193. printDate();
  194. </script>
  195.  
  196. <p>
  197. <font face="arial, helvetica" size="-2">
  198. Day images   (c) <a href="http://www.site-ations.com">http://www.site-ations.com</a><br>
  199. Month images (c) <a href="http://www.bruce-hamilton.com">http://www.bruce-hamilton.com</a>
  200. </font>
  201.  
  202. </center>
  203.  
  204.  
  205. <!-- END OF SCRIPT -->
  206. <!/PREVIEW>
  207.  
  208. <!RELATED>date-images.zip<!/RELATED>